package com.lengxf.design;

/**
 * 具体装饰类角色
 * By Lengxf
 */
public class ScrollBarDecorator extends ComponentDecorator {

    public ScrollBarDecorator(Component component) {
        super(component);
    }

    @Override
    public void display() {
        this.serScrollBar();
        super.display();
    }

    public void serScrollBar() {
        System.out.println("为构建增加滚动条...");
    }
}
